package com.bdqn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName sys_user
 */
@TableName("sys_user")
@Data
public class SysUser implements Serializable {
    /**
     * 编号
     */
    @TableId(value = "usr_id", type = IdType.AUTO)
    private Long usr_id;

    /**
     * 姓名
     */
    @TableField(value = "usr_name")
    private String usr_name;

    /**
     * 密码
     */
    @TableField(value = "usr_password")
    private String usr_password;

    /**
     * 角色编号
     */
    @TableField(value = "usr_role_id")
    private Long usr_role_id;

    /**
     * 状态
     */
    @TableField(value = "usr_flag")
    private Integer usr_flag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "SysUser{" +
                "usr_id=" + usr_id +
                ", usr_name='" + usr_name + '\'' +
                ", usr_password='" + usr_password + '\'' +
                ", usr_role_id=" + usr_role_id +
                ", usr_flag=" + usr_flag +
                '}';
    }
}